-- GENERATED SPELL FOR [Windroc Matriarch] --


function spell0_19055(pUnit, Event) --@Eagle Claw,n/a--
pUnit:FullCastSpellOnTarget(30285,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19055', 15000, 1)
end

function spell1_19055(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(32914,pUnit)
pUnit:RegisterEvent('Sorts_19055', 1000, 1)
end

function Sorts_19055(pUnit, Event)
local choix_sorts_19055 = math.random(0, 1)
if choix_sorts_19055 == 0 then
pUnit:RegisterEvent('spell0_19055', 1, 1)
end
if choix_sorts_19055 == 1 then
pUnit:RegisterEvent('spell1_19055', 1, 1)
end
end

function mob19055_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19055', math.random(1500, 3000), 1)
end

function mob19055_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19055_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19055_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19055, 1, 'mob19055_Action')
RegisterUnitEvent(19055, 2, 'mob19055_Leave')
RegisterUnitEvent(19055, 3, 'mob19055_Kill')
RegisterUnitEvent(19055, 4, 'mob19055_Die')
